#include <QtGui/QApplication>
#include <QTextCodec>
#include "PynotoWindow.h"

int main(int argc, char *argv[])
{
    QTextCodec::setCodecForCStrings( QTextCodec::codecForName("utf8") );
    QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"));

    QApplication a(argc, argv);
    a.setOrganizationName("PyNotoQt");
    a.setApplicationName("common");

    a.addLibraryPath("/usr/lib/pynoto/plugins");
    a.addLibraryPath(QApplication::applicationDirPath());
    QDir pluginsDir(QApplication::applicationDirPath());
    pluginsDir.cd("plugins");
    a.addLibraryPath(pluginsDir.path());


    PynotoWindow wnd;
    wnd.show();
    a.exec();
    return 0;
}
